//
//  JavaScriptHelper.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2017/2/14.
//  Copyright © 2021年 梁慧聪. All rights reserved.
//

#import <Foundation/Foundation.h>

@class CLWebView;

@interface CLJavaScriptHelper : NSObject
@property (nonatomic, strong) NSDictionary *xpathInfo;
@property (nonatomic, strong) NSMutableDictionary *jsLoadRecord;

SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(CLJavaScriptHelper)
+ (void)setNoImageMode:(BOOL)enabled webView:(CLWebView *)webView loadPrimaryScript:(BOOL)needsLoad;
+ (void)setLongPressGestureWithWebView:(CLWebView *)webView;
+ (void)setFindInPageWithWebView:(CLWebView *)webView;
+ (void)setBaiduADBlockWithWebView:(CLWebView *)webView;
+ (void)setTestJSBlockWithWebView:(CLWebView *)webView;
+ (void)setEyeProtectiveWithWebView:(CLWebView *)webView colorValue:(NSString *)colorValue loadPrimaryScript:(BOOL)needsLoad;
+ (void)setEyeProtectiveWithWebView:(CLWebView *)webView on:(NSInteger)isOn loadPrimaryScript:(BOOL)needsLoad;
+ (BOOL)boolLoadFinish:(NSString *)url withName:(NSString *)name;
@end
